package com.oocl.comparator;

import java.util.Comparator;

import com.oocl.pojo.Customer;

/**
 * ID排序器
 * @author GANAB
 *
 */
public class CustomerComparatorById implements Comparator<Customer> {

	public int compare(Customer o1, Customer o2) {
		Integer id1 = Integer.parseInt(o1.getId());
		Integer id2 = Integer.parseInt(o2.getId());
		return id1-id2;
	}

}
